/*
    Copyright (C) 2013 maik.jablonski@jease.org

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package sample.domain;

import jfix.db4o.Persistent;

public class Status extends Persistent implements Persistent.Value {

	private boolean accepted;
	private boolean started;
	private boolean done;
	private boolean duplicate;
	private boolean invalid;
	private boolean wontfix;

	public boolean isAccepted() {
		return accepted;
	}

	public void setAccepted(boolean accepted) {
		this.accepted = accepted;
	}

	public boolean isStarted() {
		return started;
	}

	public void setStarted(boolean started) {
		this.started = started;
	}

	public boolean isDone() {
		return done;
	}

	public void setDone(boolean done) {
		this.done = done;
	}

	public boolean isDuplicate() {
		return duplicate;
	}

	public void setDuplicate(boolean duplicate) {
		this.duplicate = duplicate;
	}

	public boolean isInvalid() {
		return invalid;
	}

	public void setInvalid(boolean invalid) {
		this.invalid = invalid;
	}

	public boolean isWontfix() {
		return wontfix;
	}

	public void setWontfix(boolean wontfix) {
		this.wontfix = wontfix;
	}

	public String toString() {
		if (accepted) {
			return "Accepted";
		}
		if (started) {
			return "Started";
		}
		if (done) {
			return "Done";
		}
		if (duplicate) {
			return "Duplicate";
		}
		if (invalid) {
			return "Invalid";
		}
		if (wontfix) {
			return "Wont Fix";
		}
		return "New";
	}
}
